package net.pa.ovpn.model;

import java.io.Serializable;

public class FileObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 354715712570911261L;

	private String id;
	private String name;
	private String path;
	private String operation;
	
	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((path == null) ? 0 : path.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof FileObject)) {
			return false;
		}
		FileObject that = (FileObject) obj;
		return this.name.equals(that.name) && this.path.equals(that.path);
	}

	@Override
	public String toString() {
		return "FileObject [id=" + id + ", name=" + name + ", path=" + path
				+ ", operation=" + operation + "]";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name == null ? "" : name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path == null ? "" : path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getOperation() {
		return operation == null ? "" : operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

}
